<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100">
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Details' ); ?></legend>

		<table class="admintable">
		<tr>
		
			<td width="100" align="right" class="key">
				<label for="name">
					<?php echo JText::_( 'Name' ); ?>:
				</label>
			</td>
			<td>
			<?php if($this->necro->username): ?>
			<input type='hidden' name='username' value="<?php echo $this->necro->username ?>" />
			<?php echo $this->necro->lname . " " . $this->necro->fname?>
			<?php else: ?>
			<select name='username' id='username' class='inputbox' size='1'>
			<option value=''><?php echo JText::_( 'Select a name' ) ?></option>
			<?php foreach($this->passedusers as $passeduser): ?>
			<option value='<?php echo $passeduser->username ?>'><?php echo $passeduser->lname . " " . $passeduser->fname ?></option>
			<?php endforeach; ?>
			</select>
			<?php endif; ?>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="author">
					<?php echo JText::_( 'Author' ); ?>:
				</label>
			</td>
			<td>
				<input name='author' id='author' class='inputbox' value="<?php echo $this->necro->author ?>" />
			</td>
		</tr>
 		<tr>
			<td width="100" align="right" class="key" valign="top">
				<label for="texte">
					<?php echo JText::_( 'Text' ); ?>:
				</label>
			</td>
			<td>
              <?php echo $this->editor->display('texte',  $this->necro->texte , '650', '500', '75', '20') ; ?>
			
			</td>
		</tr>
	</table>
	</fieldset>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_congregation" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="id" value="<?php echo $this->necro->id ?>" />
<input type="hidden" name="controller" value="necro" />
</form>
